export default {
  data () {
    return {
      list_c: [
        { label: '编号', prop: 'id' },
        { label: '流水号', prop: 'serialNo' },
        { label: '领料单号', prop: 'issue.issueNo' },
        { label: '物料名称', prop: 'material.name' },
        { label: '规格', prop: 'material.specification' },
        { label: '单位', prop: 'material.unit' },
        { label: '需求数量', prop: 'demandQuantity' },
        { label: '已领数量', prop: 'issueQuantity' },
        { label: '抽检数量', prop: 'samplingQuantity' },
        { label: '检验项', prop: 'inspectionItems' },
        { label: '标准值上限', prop: 'upperLimit' },
        { label: '标准值下限', prop: 'lowerLimit' },
        { label: '检验值', prop: 'inspectionValue' },
        { label: '检验结果', prop: 'inspectionResult' },
        { label: '检验人', prop: 'inspector' },
        { label: '检验时间', prop: 'inspectionDate' },
      ],
      list_q: {
        serialNo: null,
        issueNo: null,
        materialName: null,
        inspector: null,
        inspectionStartDate: null,
        inspectionEndDate: null,
        inspectionAttr: []
      },
      list_q_c: [
        { form_item_prop: { label: '流水号', prop: 'serialNo' }, component_name: 'el-input' },
        { form_item_prop: { label: '领料单号', prop: 'issueNo' }, component_name: 'el-input' },
        { form_item_prop: { label: '物料名称', prop: 'materialName' }, component_name: 'el-input' },
        { form_item_prop: { label: '检验人', prop: 'inspector' }, component_name: 'el-input' },
        { form_item_prop: { label: '检验时间', prop: 'inspectionAttr' }, component_name: 'el-date-picker', component_prop: { 'value-format': '	yyyy-MM-dd hh:mm:ss', type: 'datetimerange', 'range-separator': "至", 'start-placeholder': "开始日期", 'end-placeholder': "结束日期" } },
      ],
      list_e: {
        demandQuantity: null,
        id: null,
        inspectionResult: null,
        inspectionValue: null,
        issueId: null,
        issueNo: null,
        issueQuantity: null,
        materialId: null,
        materialName: null,
        remark: null,
        samplingQuantity: null,
        serialNo: null,
      },
      list_e_c: [
        { form_item_prop: { label: '领料编号', prop: 'issueNo', required: true }, component_name: 'el-input', },
        { form_item_prop: { label: '物料名称', prop: 'materialName', required: true }, component_name: 'el-input', },
        { form_item_prop: { label: '抽检数量', prop: 'samplingQuantity', required: true }, component_name: 'el-input-number', component_prop: { min: 1 } },
        { form_item_prop: { label: '检验值', prop: 'inspectionValue', required: true }, component_name: 'el-input', },
        { form_item_prop: { label: '检验结果', prop: 'inspectionResult', required: true }, component_name: 'el-input', },
        { form_item_prop: { label: '备注', prop: 'remark' }, component_name: 'el-input', component_prop: { type: 'textarea' } },
      ],
      list_issue_c: [
        { label: '领料编号', prop: 'issueNo' },
        { label: '产品', prop: 'product' },
        { label: '生产日期', prop: 'productDate' },
        { label: '领料数量', prop: 'quantity' },
        { label: '规格', prop: 'specification' },
        { label: '单位', prop: 'unit' },
      ],
      list_material_c: [
        { label: '编号', prop: 'id' },
        { label: '物料编码', prop: 'material.code' },
        { label: '物料名称', prop: 'material.name' },
        { label: '型号', prop: 'material.model' },
        { label: '规格', prop: 'material.specification' },
        { label: '单位', prop: 'material.unit' },
        { label: '单价', prop: 'material.price' },
        { label: '备注', prop: 'material.remark' },
      ],
      pager: {
        page: 1,
        limit: 10,
        total: 0
      },
    }
  },
  methods: {
  },
}